package be.idamf.cortizone.fileprocessor
{
	import flash.filesystem.File;
	
	public class FileCountProcessor implements IFileProcessor
	{
		private var _n:uint;

		[Bindable]
		public function get n():uint
		{
			return _n;
		}

		private function set n(value:uint):void
		{
			_n = value;
		}

		public function FileCountProcessor()
		{
		}
		
		public function reset():void
		{
			n = 0;
		}
		
		public function cancel():void
		{
		}
		
		public function process(file:File):Boolean
		{
			++n;
			return true;
		}
	}
}